package com.flyco.modules.sms.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 事件流配置
 * @Author: flyco
 * @Date:   2021-06-03
 * @Version: V1.0
 */
@Data
@TableName("sms_event_flow")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sms_event_flow对象", description="事件流配置")
public class SmsEventFlow {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**事件流名称*/
	@Excel(name = "事件流名称", width = 15)
    @ApiModelProperty(value = "事件流名称")
	private String name;
	/**事件源：payOrder订单支付完成，aq调查问卷完成*/
	@Excel(name = "事件源：payOrder订单支付完成，aq调查问卷完成", width = 15)
    @ApiModelProperty(value = "事件源：payOrder订单支付完成，aq调查问卷完成")
	@Dict(dicCode = "event_source")
	private String eventSource;
	/**前置检查表达式的编号*/
	@Excel(name = "前置检查表达式的编号", width = 15)
    @ApiModelProperty(value = "前置检查表达式的编号")
	private String entryAssertion;
	/**动作类型：coupon领券，lottery抽奖，question调查问卷*/
	@Excel(name = "动作类型：coupon领券，lottery抽奖，question调查问卷", width = 15)
    @ApiModelProperty(value = "动作类型：coupon领券，lottery抽奖，question调查问卷")
	@Dict(dicCode = "action_type")
	private String actionType;
	/**动作id，优惠劵uuid，抽奖活动id，调查问卷id等*/
	@Excel(name = "动作id，优惠劵uuid，抽奖活动id，调查问卷id等", width = 15)
    @ApiModelProperty(value = "动作id，优惠劵uuid，抽奖活动id，调查问卷id等")
	private String actionId;
	/**执行时可能的参数*/
	@Excel(name = "执行时可能的参数", width = 15)
    @ApiModelProperty(value = "执行时可能的参数")
	private String actionArg;
	/**开始时间*/
	@Excel(name = "开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
	private Date startTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
	private Date endTime;
	/**状态：0-无效 1-有效*/
	@Excel(name = "状态：0-无效 1-有效", width = 15)
    @ApiModelProperty(value = "状态：0-无效 1-有效")
	private Integer status;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
	private Integer sort;
	/**删除状态：0->未删除；1->已删除*/
	@Excel(name = "删除状态：0->未删除；1->已删除", width = 15)
    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
	@TableLogic
	private Integer cancelFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
